package cn.bisoft.java.bean.entity;

import java.io.Serializable;



/**
 * This is an object that contains data related to the AnteFrontTicketMap table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="AnteFrontTicketMap"
 */

public abstract class BaseAnteFrontTicketMap  implements Serializable {
	private static final long serialVersionUID = 1L;
	public static String REF = "AnteFrontTicketMap";
	public static String PROP_ANTE_TYPE = "anteType";
	public static String PROP_ANTE_CODE2 = "anteCode2";
	public static String PROP_MESSAGE_ID = "messageId";
	public static String PROP_NOTIFY_STATE = "notifyState";
	public static String PROP_SEND_TIMES = "sendTimes";
	public static String PROP_TICKET_ID = "ticketId";
	public static String PROP_TICKET_SERIAL_NO = "ticketSerialNo";
	public static String PROP_ANTE_CODE1 = "anteCode1";
	public static String PROP_PLAY_TYPE = "playType";
	public static String PROP_TEL_CARD_NO = "telCardNo";
	public static String PROP_MOBILE = "mobile";
	public static String PROP_SEQ_NO = "SeqNo";
	public static String PROP_ANTE_CODE4 = "anteCode4";
	public static String PROP_MONEY = "money";
	public static String PROP_ANTE_CODE5 = "anteCode5";
	public static String PROP_REAL_NAME = "realName";
	public static String PROP_RESPONSE_MESSAGE = "responseMessage";
	public static String PROP_ANTE_STATE = "anteState";
	public static String PROP_GAME_NAME = "gameName";
	public static String PROP_COUNTER_I_D = "counterID";
	public static String PROP_RESPONSE_CODE = "responseCode";
	public static String PROP_CARD_NUMBER = "cardNumber";
	public static String PROP_AMOUNT = "amount";
	public static String PROP_CARD_TYPE = "cardType";
	public static String PROP_BONUS_PHONE = "bonusPhone";
	public static String PROP_ISSUE_NUMBER = "issueNumber";
	public static String PROP_MAIL = "mail";
	public static String PROP_LOGIN_ID = "loginId";
	public static String PROP_ANTE_TIME = "anteTime";
	public static String PROP_ANTE_CODE3 = "anteCode3";
	public static String PROP_NOTIFY_TIME = "notifyTime";


	// constructors
	public BaseAnteFrontTicketMap () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseAnteFrontTicketMap (java.lang.Long seqNo) {
		this.setSeqNo(seqNo);
		initialize();
	}

	/**
	 * Constructor for required fields
	 */
	public BaseAnteFrontTicketMap (
		java.lang.Long seqNo,
		java.lang.String ticketId,
		java.lang.Integer playType,
		java.lang.Long money,
		java.lang.Integer amount,
		java.lang.String issueNumber,
		java.lang.String gameName,
		java.lang.String counterID,
		java.lang.Integer anteState,
		java.lang.Integer notifyState,
		java.util.Date anteTime,
		java.lang.Integer sendTimes) {

		this.setSeqNo(seqNo);
		this.setTicketId(ticketId);
		this.setPlayType(playType);
		this.setMoney(money);
		this.setAmount(amount);
		this.setIssueNumber(issueNumber);
		this.setGameName(gameName);
		this.setCounterID(counterID);
		this.setAnteState(anteState);
		this.setNotifyState(notifyState);
		this.setAnteTime(anteTime);
		this.setSendTimes(sendTimes);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Long seqNo;

	// fields
	private java.lang.String ticketId;
	private java.lang.Integer playType;
	private java.lang.Long money;
	private java.lang.Integer amount;
	private java.lang.String issueNumber;
	private java.lang.String gameName;
	private java.lang.Integer cardType;
	private java.lang.String mail;
	private java.lang.String cardNumber;
	private java.lang.String mobile;
	private java.lang.String realName;
	private java.lang.String bonusPhone;
	private java.lang.String anteCode1;
	private java.lang.String anteCode2;
	private java.lang.String anteCode3;
	private java.lang.String anteCode4;
	private java.lang.String anteCode5;
	private java.lang.String counterID;
	private java.lang.Integer anteState;
	private java.lang.Integer notifyState;
	private java.lang.String responseCode;
	private java.lang.String responseMessage;
	private java.lang.String ticketSerialNo;
	private java.util.Date anteTime;
	private java.lang.String messageId;
	private java.util.Date notifyTime;
	private java.lang.Integer sendTimes;
	private java.lang.String loginId;
	private java.lang.Integer anteType;
	private java.lang.String telCardNo;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="native"
     *  column="SeqNo"
     */
	public java.lang.Long getSeqNo () {
		return seqNo;
	}

	/**
	 * Set the unique identifier of this class
	 * @param seqNo the new ID
	 */
	public void setSeqNo (java.lang.Long seqNo) {
		this.seqNo = seqNo;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: TicketId
	 */
	public java.lang.String getTicketId () {
		return ticketId;
	}

	/**
	 * Set the value related to the column: TicketId
	 * @param ticketId the TicketId value
	 */
	public void setTicketId (java.lang.String ticketId) {
		this.ticketId = ticketId;
	}



	/**
	 * Return the value associated with the column: PlayType
	 */
	public java.lang.Integer getPlayType () {
		return playType;
	}

	/**
	 * Set the value related to the column: PlayType
	 * @param playType the PlayType value
	 */
	public void setPlayType (java.lang.Integer playType) {
		this.playType = playType;
	}



	/**
	 * Return the value associated with the column: money
	 */
	public java.lang.Long getMoney () {
		return money;
	}

	/**
	 * Set the value related to the column: money
	 * @param money the money value
	 */
	public void setMoney (java.lang.Long money) {
		this.money = money;
	}



	/**
	 * Return the value associated with the column: amount
	 */
	public java.lang.Integer getAmount () {
		return amount;
	}

	/**
	 * Set the value related to the column: amount
	 * @param amount the amount value
	 */
	public void setAmount (java.lang.Integer amount) {
		this.amount = amount;
	}



	/**
	 * Return the value associated with the column: IssueNumber
	 */
	public java.lang.String getIssueNumber () {
		return issueNumber;
	}

	/**
	 * Set the value related to the column: IssueNumber
	 * @param issueNumber the IssueNumber value
	 */
	public void setIssueNumber (java.lang.String issueNumber) {
		this.issueNumber = issueNumber;
	}



	/**
	 * Return the value associated with the column: GameName
	 */
	public java.lang.String getGameName () {
		return gameName;
	}

	/**
	 * Set the value related to the column: GameName
	 * @param gameName the GameName value
	 */
	public void setGameName (java.lang.String gameName) {
		this.gameName = gameName;
	}



	/**
	 * Return the value associated with the column: CardType
	 */
	public java.lang.Integer getCardType () {
		return cardType;
	}

	/**
	 * Set the value related to the column: CardType
	 * @param cardType the CardType value
	 */
	public void setCardType (java.lang.Integer cardType) {
		this.cardType = cardType;
	}



	/**
	 * Return the value associated with the column: Mail
	 */
	public java.lang.String getMail () {
		return mail;
	}

	/**
	 * Set the value related to the column: Mail
	 * @param mail the Mail value
	 */
	public void setMail (java.lang.String mail) {
		this.mail = mail;
	}



	/**
	 * Return the value associated with the column: CardNumber
	 */
	public java.lang.String getCardNumber () {
		return cardNumber;
	}

	/**
	 * Set the value related to the column: CardNumber
	 * @param cardNumber the CardNumber value
	 */
	public void setCardNumber (java.lang.String cardNumber) {
		this.cardNumber = cardNumber;
	}



	/**
	 * Return the value associated with the column: Mobile
	 */
	public java.lang.String getMobile () {
		return mobile;
	}

	/**
	 * Set the value related to the column: Mobile
	 * @param mobile the Mobile value
	 */
	public void setMobile (java.lang.String mobile) {
		this.mobile = mobile;
	}



	/**
	 * Return the value associated with the column: RealName
	 */
	public java.lang.String getRealName () {
		return realName;
	}

	/**
	 * Set the value related to the column: RealName
	 * @param realName the RealName value
	 */
	public void setRealName (java.lang.String realName) {
		this.realName = realName;
	}



	/**
	 * Return the value associated with the column: BonusPhone
	 */
	public java.lang.String getBonusPhone () {
		return bonusPhone;
	}

	/**
	 * Set the value related to the column: BonusPhone
	 * @param bonusPhone the BonusPhone value
	 */
	public void setBonusPhone (java.lang.String bonusPhone) {
		this.bonusPhone = bonusPhone;
	}



	/**
	 * Return the value associated with the column: anteCode1
	 */
	public java.lang.String getAnteCode1 () {
		return anteCode1;
	}

	/**
	 * Set the value related to the column: anteCode1
	 * @param anteCode1 the anteCode1 value
	 */
	public void setAnteCode1 (java.lang.String anteCode1) {
		this.anteCode1 = anteCode1;
	}



	/**
	 * Return the value associated with the column: anteCode2
	 */
	public java.lang.String getAnteCode2 () {
		return anteCode2;
	}

	/**
	 * Set the value related to the column: anteCode2
	 * @param anteCode2 the anteCode2 value
	 */
	public void setAnteCode2 (java.lang.String anteCode2) {
		this.anteCode2 = anteCode2;
	}



	/**
	 * Return the value associated with the column: anteCode3
	 */
	public java.lang.String getAnteCode3 () {
		return anteCode3;
	}

	/**
	 * Set the value related to the column: anteCode3
	 * @param anteCode3 the anteCode3 value
	 */
	public void setAnteCode3 (java.lang.String anteCode3) {
		this.anteCode3 = anteCode3;
	}



	/**
	 * Return the value associated with the column: anteCode4
	 */
	public java.lang.String getAnteCode4 () {
		return anteCode4;
	}

	/**
	 * Set the value related to the column: anteCode4
	 * @param anteCode4 the anteCode4 value
	 */
	public void setAnteCode4 (java.lang.String anteCode4) {
		this.anteCode4 = anteCode4;
	}



	/**
	 * Return the value associated with the column: anteCode5
	 */
	public java.lang.String getAnteCode5 () {
		return anteCode5;
	}

	/**
	 * Set the value related to the column: anteCode5
	 * @param anteCode5 the anteCode5 value
	 */
	public void setAnteCode5 (java.lang.String anteCode5) {
		this.anteCode5 = anteCode5;
	}



	/**
	 * Return the value associated with the column: CounterID
	 */
	public java.lang.String getCounterID () {
		return counterID;
	}

	/**
	 * Set the value related to the column: CounterID
	 * @param counterID the CounterID value
	 */
	public void setCounterID (java.lang.String counterID) {
		this.counterID = counterID;
	}



	/**
	 * Return the value associated with the column: AnteState
	 */
	public java.lang.Integer getAnteState () {
		return anteState;
	}

	/**
	 * Set the value related to the column: AnteState
	 * @param anteState the AnteState value
	 */
	public void setAnteState (java.lang.Integer anteState) {
		this.anteState = anteState;
	}



	/**
	 * Return the value associated with the column: NotifyState
	 */
	public java.lang.Integer getNotifyState () {
		return notifyState;
	}

	/**
	 * Set the value related to the column: NotifyState
	 * @param notifyState the NotifyState value
	 */
	public void setNotifyState (java.lang.Integer notifyState) {
		this.notifyState = notifyState;
	}



	/**
	 * Return the value associated with the column: ResponseCode
	 */
	public java.lang.String getResponseCode () {
		return responseCode;
	}

	/**
	 * Set the value related to the column: ResponseCode
	 * @param responseCode the ResponseCode value
	 */
	public void setResponseCode (java.lang.String responseCode) {
		this.responseCode = responseCode;
	}



	/**
	 * Return the value associated with the column: ResponseMessage
	 */
	public java.lang.String getResponseMessage () {
		return responseMessage;
	}

	/**
	 * Set the value related to the column: ResponseMessage
	 * @param responseMessage the ResponseMessage value
	 */
	public void setResponseMessage (java.lang.String responseMessage) {
		this.responseMessage = responseMessage;
	}



	/**
	 * Return the value associated with the column: TicketSerialNo
	 */
	public java.lang.String getTicketSerialNo () {
		return ticketSerialNo;
	}

	/**
	 * Set the value related to the column: TicketSerialNo
	 * @param ticketSerialNo the TicketSerialNo value
	 */
	public void setTicketSerialNo (java.lang.String ticketSerialNo) {
		this.ticketSerialNo = ticketSerialNo;
	}



	/**
	 * Return the value associated with the column: AnteTime
	 */
	public java.util.Date getAnteTime () {
		return anteTime;
	}

	/**
	 * Set the value related to the column: AnteTime
	 * @param anteTime the AnteTime value
	 */
	public void setAnteTime (java.util.Date anteTime) {
		this.anteTime = anteTime;
	}



	/**
	 * Return the value associated with the column: MessageId
	 */
	public java.lang.String getMessageId () {
		return messageId;
	}

	/**
	 * Set the value related to the column: MessageId
	 * @param messageId the MessageId value
	 */
	public void setMessageId (java.lang.String messageId) {
		this.messageId = messageId;
	}



	/**
	 * Return the value associated with the column: NotifyTime
	 */
	public java.util.Date getNotifyTime () {
		return notifyTime;
	}

	/**
	 * Set the value related to the column: NotifyTime
	 * @param notifyTime the NotifyTime value
	 */
	public void setNotifyTime (java.util.Date notifyTime) {
		this.notifyTime = notifyTime;
	}



	/**
	 * Return the value associated with the column: SendTimes
	 */
	public java.lang.Integer getSendTimes () {
		return sendTimes;
	}

	/**
	 * Set the value related to the column: SendTimes
	 * @param sendTimes the SendTimes value
	 */
	public void setSendTimes (java.lang.Integer sendTimes) {
		this.sendTimes = sendTimes;
	}



	/**
	 * Return the value associated with the column: LoginId
	 */
	public java.lang.String getLoginId () {
		return loginId;
	}

	/**
	 * Set the value related to the column: LoginId
	 * @param loginId the LoginId value
	 */
	public void setLoginId (java.lang.String loginId) {
		this.loginId = loginId;
	}



	/**
	 * Return the value associated with the column: anteType
	 */
	public java.lang.Integer getAnteType () {
		return anteType;
	}

	/**
	 * Set the value related to the column: anteType
	 * @param anteType the anteType value
	 */
	public void setAnteType (java.lang.Integer anteType) {
		this.anteType = anteType;
	}



	/**
	 * Return the value associated with the column: telCardNo
	 */
	public java.lang.String getTelCardNo () {
		return telCardNo;
	}

	/**
	 * Set the value related to the column: telCardNo
	 * @param telCardNo the telCardNo value
	 */
	public void setTelCardNo (java.lang.String telCardNo) {
		this.telCardNo = telCardNo;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof AnteFrontTicketMap)) return false;
		else {
			AnteFrontTicketMap anteFrontTicketMap = (AnteFrontTicketMap) obj;
			if (null == this.getSeqNo() || null == anteFrontTicketMap.getSeqNo()) return false;
			else return (this.getSeqNo().equals(anteFrontTicketMap.getSeqNo()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getSeqNo()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getSeqNo().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}